Construct a musical composition following the given alphabetical structure and incorporating the specified motif.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['A AFA Agf ede fdB', 'd2 a afa afa bgb bfb afa']  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 A | AFA Agf | ede fdB | AFA AdF | EFE E2 A | AFA Agf | ede fdB | A2 g g>ag | ded d2 :| a | 
 afa afa | bgb bfb | afa agf | efe dfg | a3 f3 | ede fdB | A2 g f>ag | ded d2 :|  