Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:4/4
K:G
['DG(3.G.G.G AG(3.G.G.G BGdB BGAF', 'f2 de'  
X:1
L:1/8
M:4/4
K:G
 DG(3.G.G.G AG(3.G.G.G | BGdB BGAF | DF(3.F.F.F AF(3.F.F.F | ABcA BGAF | DG(3.G.G.G AG(3.G.G.G | 
 BGdB BGAF | defg agfd |1 cAFA G3 E :|2 cAFA G2 Bd || g3 a gfdf | g2 bg afde | f2 de f2 de | 
 fgaf bgaf | g3 a gfdf | g2 bg agfe | defg agfd |1 cAFA G2 Bd :|2 cAFA G3 E ||  