Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:3/4
K:D
['A2 AG FA d2 dA BA G2', 'f2 fa gf e2 eg fe'  
X:1
L:1/8
M:3/4
K:D
 FG | A2 AG FA | d2 dA BA | G2 GB AG | FG EF DF | A2 AG FA | d2 dA BA | G2 Gg fe | d4 :| de | 
 f2 fa gf | e2 eg fe | d2 df ed | cd Bc Ad | f2 fa gf | e2 eg fe | dc df ec | d4 :|  