Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/2=100
M:4/4
K:G
['(AB) (cB)(AG) F2']  
X:1
L:1/8
Q:1/2=100
M:4/4
K:G
 (G>F) | E2 (B>c) B2 (AB) | (cB)(AG) F2 (GF) | E2 (ef) g2 (fe) | (^de)(fd) B2 (AB) | 
 (cB)(AG) F2 (GA) | (BG)(FE) ^d2 (ef) | (ge)(f^d) (eB)(AB) | G2 (F>E) E2 B2 | e2 (ef) g2 (fe) | 
 (b>a)(ga) f2 (e^d) | (eB)(ef) g2 (fe) | (ba)(ga) f2 (AB) | (cB)(AG) F2 (GA) | (BG)(FE) ^d2 (ef) | 
 (ge)(f^d) (eB)(AB) | G2 (F>E) E2 ||  