Construct a musical composition following the given alphabetical structure and incorporating the specified motif.
X:1
L:1/8
Q:1/4=150
M:4/4
K:F
['d2 e2 f2 ef', 'f2 g2 a2 ga bagf g2']  
X:1
L:1/8
Q:1/4=150
M:4/4
K:F
 d2 e2 | f2 ef gfed | e2 A2 d2 e2 | f2 ef gfed | e4 :: f2 g2 | a2 ga bagf | g2 c2 f2 g2 | 
 a2 ga bagf | g2 fe f4 | e4 d4 | ^c2 =BA f4 | e2 a2 d2 ^c2 | d4 :|  