Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/16
Q:1/8=180
M:2/4
K:none
['', 'G)(AG)(A G)BeB dBAG', 'g)(fa)(f g)(fa)(f g)dBG'  
X:1
L:1/16
Q:1/8=180
M:2/4
K:none
[K:D]|: G(AG)(A G)(AG)(A | G)BeB dBAG | F(AF)B A(BA)(B | A)cdf agec | d(BG)(A G)(AG)(A | 
 G)BeB dBAG | F(AF)(B A)(BA)(B | G)Bdg G4 :: Bdg(a g)(fa)(f | g)(fa)(f g)dBG | FAe(f e)(df)(d | 
 e)(df)(d e)fed | Bdg(a g)(fa)(f | g)(fa)(f g)dBG | FAef edAF | GBdg G4 :|  