Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/2
K:G
['g2 dB GBdB', 'B,DGD CEAE'  
X:1
L:1/8
M:2/2
K:G
 f | g2 dB GBdB | A2 ec Acea | g2 dB GBdB | cedc BGGf | g2 dB GBdB | a2 ec Acea | g2 eg dgBg | 
 cA d/c/B/A/ BGG || D | B,DGD CEAE | DFAB cABG | B,DGD CEAE | DFAc BGGD | B,DGD CEAE | DFAB cedc | 
 BdgB ceag | fdaf gGG ||  