Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
Q:1/8=160
M:9/8
K:D
['F2 D A2 F', 'ABA d2 A'  
X:1
L:1/8
Q:1/8=160
M:9/8
K:D
 F2 D A2 F def | F2 D A2 F GFE | F2 D A2 F def | g2 f e2 d cBA :| ABA d2 A def | ABA d2 A GFE | 
 ABA d2 A def | g2 f e2 d cBA :|  