Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/4=160
M:4/4
K:G
['G2 G2'  
X:1
L:1/8
Q:1/4=160
M:4/4
K:G
"G" bagf edcB |"C" c2 E2 E2 AG |"D7" FDFA dcBA |"G" GBdg b4 |"G" bagf edcB |"C" c2 E2 E2 AG | 
"D7" FDFA dcBA |1"G" G2 G2 G4 :|2"G" G2 G2 G2 AG |:[K:D]"D" FDFA (3dcd ed |"G" B2 G2 G2 ed | 
"A7" cAce a2 ^ga |"D" bafd A2 AG |"D" FDFA (3dcd ed |"G" B2 G2 G2 ed |"A7" cAce agfe |1 
"D" d2 f2 d2 AG :|2"D" d2 f2 d4 |:[K:G]"G" (3ded ^cd g2 B2 |"Am" (3BcB Ac e4 |"D7" ADFA dcBA | 
"G" GABc d2 B2 |"G" (3ded ^cd g2 B2 |"Am" (3BcB Ac e3 d |"D7" fedc BcAF |"G" G2 B2 G4 :|  