Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['F D>AAB/c/ d>BA>F D>AAB/c/ d>FD>F E>ee>f g>ef>d', 'd/e/f/g/ a>b a>fd>f'  
X:1
L:1/8
M:4/4
K:D
 F | D>AAB/c/ d>BA>F | D>AAB/c/ d>FD>F | E>ee>f g>ef>d | B>eea/g/ f>ed>f | D>AAB/c/ d>B A/B/A/F/ | 
 D>AAB/c/ d>F D>g | a>fg>e f>de>c | d/c/B/A/ B/c/d/A/ F>E D || f | d/e/f/g/ a>b a>fd>f | 
 d/e/f/g/ a>b a>fd>f | Bee>f g>ef>d | Beea/g/ f>ed>f | d/e/f/g/ a>b a>fd>f | d/e/f/g/ a>b a>fd>f | 
 g>bf>a e>fd>A | B/A/B/c/ d/c/B/A/ F>E D ||  