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
['AFFF DFFF AFFF ABde fffa b2 af', 'fffe dfff afff', 'affe f2 ag ggfg', 'bagf g2 fd efdB'  
X:1
L:1/8
M:4/4
K:D
 AFFF DFFF | AFFF ABde | fffa b2 af | effe cABc | d2 cA (3Bcd AF | DEED AFFF | GGGA Bcde | 
 f2 eg fe d2 :| fffe fffe | dfff afff | DFAd fdaf | g2 fg efde | f2 fe fffe | dfff afff | 
 gggf g2 ag | fgeg fede | fffe fffe | dfff afff | bfff afff | g2 fg efde | f2 fe fffe | dfff afff | 
 gggf g2 ag | fgeg fe d2 |: adfa bdgb | affe f2 ag | ggfg efga | b2 ag agfg | a3 d' b3 d' | 
 affe f2 ag | ggfg efdB |1 AFGE D2 fg :|2 AFGE D4 |: FAAA FADF | Adfa bagf | g2 fd efdB | 
 BAGB AGFE | FAAA FADF | Adfa bagf | g2 fd efdB | AFGE D4 :|  