Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:G
['G3 B d2 BG dGBG', 'd2 BG dGBG'  
X:1
L:1/8
M:4/4
K:G
 D3 E G3 B | d2 BG dGBG | E2 BE dEBE | dBAG FAGE | DEDE G3 B | d2 BG dGBG | FGAB cdef | 
 gedc BGGB :| d2 BG dGBG | E2 BE dEBE | d2 BG dGBG | FGAc BGGB | d2 BG dGBG | E2 BE dEBE | 
 FGAB cdef | gedc BGGB :|  