Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['(3(Bcd) AF DFAg fdec', 'fdde fgaf'  
X:1
L:1/8
M:4/4
K:D
 (3(ABc) | TdcdA (3(Bcd) AF | DFAg fdec | TdcdA BdAF | GBAG FDDA |{e} dcdA (3(Bcd) AF | DFAg fdec | 
 defd cdec | dBAG FDD || g | fdde fgaf | gfga bgeg | fdde fgaf | gbag fddg | fdde fgaf | 
 gfga bgeg | fgaf (3(gag) bg | faeg fdec ||  