Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:3/4
K:Dmin
['a>g f>e d>e f>e d2 c2 d2', 'd e>a g2 (3aga =b>a g>e f>a'  
X:1
L:1/8
M:3/4
K:Dmin
|: a>g f>e d>e | f>e d2 c2 | d2 B2 A>A | G>G A2 F2 | a>g f>e d>e | f>e d2 c2 | d2 B>B A>A |1 
 G>G A4 :|2 G2 A3 A |: G>G A3 e | f>f c3 d | e>a g2 (3aga | =b>a g>e f>a | c2 d4 :|  