Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/4
Q:3/4=60
M:3/4
K:D
['a f a a g f e', 'f f'  
X:1
L:1/4
Q:3/4=60
M:3/4
K:D
 a f a | a g f | e d e | f d/e/f/g/ | a f a | a g f | e d e | f3 || f f f | e/d/e/f/e/f/ | g g g | 
 f/e/f/g/f/g/ | a f a | a g f | (g/f/) e c | d3 |]  