Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/2
K:D
['f2 fd', 'fg afed Bcd :|2 fafd gbge afed'  
X:1
L:1/8
M:2/2
K:D
 B | A2 AB AFED | B2 BA BcdB | A2 AB AFED | gfed |1 Bcd :|2 B2 d |]: e | f2 fd g2 ge | 
 f2 fd Bcde |1 f2 fd g2 fg | afed Bcd :|2 fafd gbge | afed Bcd!D.C.! ||  