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:G
['A A2']  
X:1
L:1/8
M:4/4
K:G
 D D2 E(GA) B2 | A A2 B(AG) E2 | A A2 BA FE D | G G2 E D4 | D D2 EG A B2 | A A2 BA G E2 | 
 A A2 BA FE D | G8 |]  