Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
M:2/2
K:D
['FEDE FAAB AFED d2 (3efg fdec', 'FGEF D3'  
X:1
L:1/8
M:2/2
K:D
 F3 G FEDE | FAAB AFED | d2 (3efg fdec | dBAF BE E2 | F2 FG FEDE | FAAB AFED | d2 (3efg fdec |1 
 dBAG FDDE :|2 dBAG FDFA |: d2 AG FDFA | dfaf gfeg | fAdf eAce | dfed cAAc | BDGB ADFA | 
 dfaf gfed | (3Bcd ce dBAG |1 FGEF D3 c :|2 FGEF D3 E |]  