Develop a musical composition by incorporating the suggested motif and by following the prescribed format.
X:1
L:1/8
M:4/4
K:D
['d3 d'  
X:1
L:1/8
M:4/4
K:D
|:"D" aAbA aAeg | f d3 d2 fg | aAbA aAga |"G" bgbg"A" e2 fg |"D" aAbA aAeg | f d3 d2 ef | 
"A" gfed cABc |1"D" d3 d d2 fg :|2"D" d3 d d2 (3ABc |:"D" dBAG FEDF |"G" GABc d2 Bc | 
"D" dBAG FEDF |"A" E3 E E2 Bc |"D" dBAG FEDF |"G" GABc dedB |"A" ABcd egfe |"D" d3 d d4 :|  