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:D
['d2 dB ABAF d2 AF Agfe dedF', 'fdAd fdad']  
X:1
L:1/8
M:4/4
K:D
 d2 dB ABAF | d2 AF Agfe | dedF ABAF | GFEF GABc | d2 dB ABAF | d2 AF Agfe | dedF ABAF | 
 GBAG FDDg || fdAd fdad | fdAd ceeg | fdAd fdad | bage fddg | fdAd fdad | fdAd ceeg | fage fdec | 
 dABG FD D2 ||  