Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['A2 Ad B2 dB', 'f2 fa g2 fg'  
X:1
L:1/8
M:4/4
K:D
 A2 Ad B2 dB | AD (3FED AD (3FED | A2 Ad B2 dB | ABdg fedB :| f2 fa g2 fg | eA (3cBA eA (3cBA | 
 f2 fa g2 fg | afge fd d2 | f2 fa g2 fg | eA (3cBA eA (3cBA | f2 fa g2 fg | afge fd d2 ||  