Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
M:4/4
K:Dmin
['d3 dcAd cAGE', 'c2 gc']  
X:1
L:1/8
M:4/4
K:Dmin
 A d3 dcAd | cAGE CDEG | A d3 dcAd | cAGE FDDE | D d3 dcAd | cAGE CDEG | Adfd efdf | efec D2 z2 :| 
 Adfd efec | B2 fB gBfB | c2 gc acgc | c2 gc efe^c | Adfd efec | B2 fB gBfB | c2 gc acgc | 
 efe^c d2 z2 :|  