Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/4
M:2/4
K:D
['f2 f e/f/ g f e d', 'g f'  
X:1
L:1/4
M:2/4
K:D
|: f2 f e/f/ | g f e d | c d e f | d A F A | f2 f e/f/ | g f e d | c d e f | d2 d2 :: a2 a g/a/ | 
 b a g f | g2 g f/g/ | a g f e | f2 f e/f/ | g f e d | c d e f | d2 d2 :|  