Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=232
M:4/4
K:G
['AG AB', 'gf g2 fe de dc B2 AG'  
X:1
L:1/8
Q:1/8=232
M:4/4
K:G
|: D2 | GF GA Bd cB | AG AB G2 Bc | dg fg ed cB | ce dB A2 Bc | dg fa g2 fe | de dc B2 AG | 
 AB cA dc AF | G2 GG G2 :: Bc | eg gf g2 fe | de dc B2 AG | AB cA ed cB | A2 dd d2 Bc | 
 dg gf g2 fe | de dc B2 AG | AB cA dc AF | G2 GG G2 :|  