Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:Amin
['ED (3EFG A2', 'EGAB cABG AGED ED (3E^FG A2 AB', 'A,3 D E2 DF'  
X:1
L:1/8
M:4/4
K:Amin
 A,B,CD EFDF | EDCE DG,B,G, | A,2 A,D E2 DF |1 ED (3EFG A2 A :|2 ED (3EFG A2 AB || c2 Bc AGE^F | 
 GE^FD EGAB | cABG AGED | ED (3E^FG A2 AB | c3 B AGE^F | GE^FD EGcd | ecdB cBAG | EDEG A2 z B, || 
"^variation A part" A,3 D E2 DF | E2 CE D2 B,G, | A,3 D E2 DF | ED (3EFG AA,B,G, | A,3 D E2 DF | 
 E2 CE D2 B,G, | A,3 D E2 DF | ED (3EFG A2 AB :|  