Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
Q:1/8=120
M:4/4
K:D
['z A', 'z2 f3 f ggzf gfed A2 z2'  
X:1
L:1/8
Q:1/8=120
M:4/4
K:D
 A2 | d2 d2 d/e/f/g/ ad | e2 ef/g/ f2 z A | d/c/d/e/ f/e/f/g/ aefe | de/f/ ed{d} c2 z A | 
 cAec ag/f/ ed | c2 B2 A2 z2 | d2 dA BGzd | gfed A2 z e | a2 g2 f/d/g/e/ a/f/e/d/ | A2 e2 d2 z2 |: 
 f3 f ggzf | gfed A2 z2 | a2 g2 f/d/g/e/ a/f/e/d/ | A2 e2 d2 :|  