Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:3/8
K:F
['AGF G2']  
X:1
L:1/8
M:3/8
K:F
 F | FAA | AGF | G2 A | GzA | AGF | G2 c | BAG | FzA | c2 A | cdc | BAG | FzF | AAB | c2 A | GAG | 
 F z |]  