Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:D
['f e>de>c d A2 B AG/F/ EA/G/', 'A3 g f>ga>f g b2 g e>fg>e'  
X:1
L:1/8
M:4/4
K:D
 f | e>de>c d A2 B | AG/F/ EA/G/ F D2 f | e>de>d c a2 d | cB/A/ BA/G/ A3 :: g | f>ga>f g b2 g | 
 e>fg>e f a2 f | dABF G E2 g | faAc d3 :|  