Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:2/2
K:Amix
['g3 f efed cBAc B2 ^G2', 'EDE(E [FA])[EA] [FA]2 (F G2) G FDF(F'  
X:1
L:1/8
M:2/2
K:Amix
{ABd} e2 e2 c2 d2 | e2 ef g3 f | efed cBAc | B2 ^G2 A4 |{ABd} e2 e2 c2 d2 | e2 f2 g3 f | 
 efed cBAc | B2 ^G2 A3 B || ABAF EDE(E | [FA])[EA] [FA]2 (F G2) G | FDF(F E)FEC | 
 [A,D]2 [A,D]2 A,4 | e3 (B c2) Ac | B2 ^G2 A4 |]  