Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:D
['f2 ef g z c2 d2 e3'  
X:1
L:1/8
M:4/4
K:D
 A2 |"D" A2 A2 d2 d2 |"A" efga"D" f2 ef |"G" g z B2"A" c2 d2 |1,3"A" e3 c A2 :|2,4 
"A7" e3 d"D" d2 :: z e |"A" e2 cd e3 f |"A" edcd e3 f |"A" edcd e2 dc |"E" B3 A"A" A2 z2 | 
"D" a2 a>g f2 ed |"A" e>fga f2 ef |"G" g z B2"A" c2 d2 |"A" e3 d"D" d2 :|  