Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/4
M:4/4
K:D
['B A', 'e f g e'  
X:1
L:1/4
M:4/4
K:D
|: f e/f/ e d | F A B A | g f/g/ f e | B/A/B/c/ B A | f e/f/ e d | F A B A | g f/g/ f e | B c d2 :: 
 e f g e | d e f2 | e f g e | B/A/B/c/ B A | e f g e | d e f2 | e f g e | B c d2 :|  