Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/2
K:D
['fgfe d2 B2 AdAF', 'e(cc)d/e/ f>gfe'  
X:1
L:1/8
M:2/2
K:D
 fgfe d2 B2 | AdAF E/E/E E2 | fgfe d2 B2 | AdAF D/D/D D2 :: A(FF)G/A/ BGBd | c(AA)B/c/ dBdf | 
 e(cc)d/e/ f>gfe | dBAF E/E/E E2 | A(FF)G/A/ B(GG)A/B/ | c(AA)B/c/ d(BB)c/d/ | e(cc)d/e/ f>gfe | 
 dBAd D/D/D D2 :|  