Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
Q:1/8=200
M:2/2
K:G
['G2 dc', 'gfga gfed cBcd'  
X:1
L:1/8
Q:1/8=200
M:2/2
K:G
 D2 | G2 dc BABG | c2 ed cBcA | G2 dc BABc | dDFA dcBA | G2 dc BABG | cBcd egec | BdBG AcAF | 
 G2 B2 G2 :| d2 | gfga gfed | cBcd efge | a^gab a=gfe | d^cde defd | gfga gfed | cBcd egec | 
 BdBG AcAF | G2 B2 G2 :|  