Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/4
K:A
['A B A']  
X:1
L:1/8
M:2/4
K:A
 B2 F A | B2 F A | B A F A | B A B A | B4 | A B/ B/ e c | B4 | A3/2 B/ G F | E D z F | E D z2 | 
 F F/ F/ B G/ G/ | F3 E | D E F D | B,4 |]  