Develop a musical composition based on the specified form and using the given motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['d/c/d AF d2 fe dAFA GEED dAFA', 'a2 fd adfd'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 d/c/d AF d2 fe | dAFA GEED | dAFA d2 ef | gbag fd d2 :| a2 fd adfd | a2 fa bgeg |1 a2 fd adfd | 
 gbag fd d2 :|2 (3aba (3gag (3fgf (3efe | Abag fd d2 :|  