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
['', 'G2 DG BDGB d2 ef gdBG', 'gdBG cEGc BDGB Ad^ce de (3fed gG'  
X:1
L:1/8
M:4/4
K:G
 D |: G2 DG BDGB | d2 ef gdBG | A2 EA cEAG | (3FGA d^c ed=cA | G2 DG BDGB | d2 ef gdBG | 
 ecAG FAdc |1 BGAF G3 D :|2 BGAF G2 (3def |: gG G2 eG G2 | Bdef gdBG | cEGc BDGB | Ad^ce de (3fed | 
 gG G2 eG G2 | Bdef gdBG | ecAG FAdc |1 BGAF G2 (3def :|2 BGAF G3 D ||  