Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:1/2=90
M:2/2
K:D
['(fg) afge dfed cdec ABAG FGef']  
X:1
L:1/8
Q:1/2=90
M:2/2
K:D
 (fg) | afge dfed | cdec ABAG | FGef gfed | c2 AA A2 (fg) | afge dfed | cdec ABAG | FGef gedc | 
 d2 dd d2 ::  