Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/8=170
M:6/8
K:D
['AGF A2', 'd2 F'  
X:1
L:1/8
Q:1/8=170
M:6/8
K:D
 G | AGF A2 E | DED FED | AGF A2 D | A3 d3 | AGF A2 E | DED AGF | EFE E2 F | G3 B2 :| G | 
 ABc d2 F | AGF d2 F | ABc dAF | B3 d3 |1 ABc ded | cBA d2 A | Bcd EFE | G3 B2 :|2 faf gec | 
 fdB AFD | EFE E2 F | G3 !fermata!B3 |]  