Develop a musical composition based on the specified form and using the given motif.
X:1
L:1/8
M:6/8
K:D
['fdf agf gfg'  
X:1
L:1/8
M:6/8
K:D
|: A |"D" def eBA | AFD"A" EED |"D" DFA AFA |"A" Bee edB |"D" def"G" dBA |"D" AFD"A" EED | 
"D" DFA AFA |"A" ABc"D" d2 :: e |"D" fdf agf |"Em" gfg bag |"D" fdf agf |"A" gfg e2 e | 
"D" fdf agf |"G" gfg bag |"D" fga"A" efg |"D" fdd d2 :|  