Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['ABA AFA', 'g fed'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 F | ABA AFA | d2 A A2 G | ABA AFA | B2 E E2 F | ABA AFA | d2 e f2 e | dcB ABc | d2 D D2 :| g | 
 fed fed | e2 A A2 g | fed fef | g2 e e2 g | fed fed | fef a2 g | fed ABc | d2 D D2 :|  