Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/4
M:4/4
K:D
['', 'A F F', 'g/f/ e'  
X:1
L:1/4
M:4/4
K:D
 A/d/ |: f f/g/f/e/d/B/ | A F F A | B G G B | A F F A/d/ | f f/g/f/e/d/B/ | A F F A | B B c c |1 
 d d d A/d/ :|2 d2 d a/g/ |: f f/f/f/f/f/f/ | a g g g/f/ | e e/e/ f g | b a a a/g/ | 
 f f/f/f/f/f/f/ | a g g g/f/ | e c A e | d2 :|  