Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:4/4
K:D
['AFAB defg a2 fd efdB AFAB d2', 'D2 faaf defg a2 fd']  
X:1
L:1/8
M:4/4
K:D
 AFAB defg | a2 fd efdB | AFAB d2 fe | dBAF EF D2 :| faaf defg | a2 fd ef d2 | edef defe | 
 dBAF EF D2 | faaf defg | a2 fd efdB | AFAB d2 fe | dBAF EF D2 ||  