Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
M:4/4
K:D
['AD D2 DEFA BFAF E2 Ac d2', 'fd d2 fdge f2 gf edBc dBBA'  
X:1
L:1/8
M:4/4
K:D
|: B | AD D2 DEFA | BFAF E2 Ac | d2 cA (3Bcd AF | G2 FG ED(3Bcd | AD D2 DEFA | BFAF E2 Ac | 
 d2 cA (3Bcd AF | GFEG FDD :| e | fd d2 fdge | f2 gf edBc | dBBA Bc d2 | fdgf e2 de | fd d2 fdge | 
 f2 gf edBc | dBBA Bc d2 | GFEG FDDe | fd d2 fdge | f2 gf edBc | dBBA Bc d2 | fdgf e2 de | 
 fgaf e2 dB | defd B2 dB | AD D2 DEFA | BFAF D3 ||  