Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['d2 de', 'dggf gagf dg g2 bgaf'  
X:1
L:1/8
M:4/4
K:G
|: dG G2 dGeG | d2 de dcAB | cF F2 cF F2 | (3Bcd ed cABc | dg g2 dgeg | d2 de dcAG | FGAd fdeg | 
 fdcA G4 :: dggf gagf | dg g2 bgaf | dffe fgfe | df f2 afgf | dggf gagf | dg g2 bgaf | dcde fdeg | 
 fdcA G4 :|  