Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/4
M:4/4
K:D
['d e', 'd f'  
X:1
L:1/4
M:4/4
K:D
 D F A B/c/ | d e d2 | B/d/B/A/ B/c/ d | e d e f | D F A B/c/ | d e f a/f/ | e/c/d/d/ d F | 
 E2 D z || a3/2 g/ f d | f a a2 | a (3b/a/f/ e f | g a b a d3/2 a/ f/e/d/B/ | A d f a/f/ | 
 e/c/d/d/ d F | E2 D z ||  