Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/4=100
M:4/4
K:G
['z G<GAB dBBg G<GAB', 'z f'  
X:1
L:1/8
Q:1/4=100
M:4/4
K:G
 z | G<GAB dBBg | G<GAB d<B z :| f | g>fed edBf | g>agf e<B z f | gfed ef g2 | G<GA>B dBBg | 
 G<GA>B d<B z |]  