Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/4
M:2/2
K:D
['f d', 'f g b a g'  
X:1
L:1/4
M:2/2
K:D
 d c d B A/ F3/2 F A | G/ E3/2 E G F D D2 | d c d B A/ F3/2 F e |1 (3f g a e g f d d c :|2 
 (3f g a e g f d d e || (3f e d a d f d a d | (3c B A e A f A e A |1 (3f e d a d f d e f | 
 g b a g f d d e :|2 (3B c d c e d f e f | g b a g (3f e d e c ||  