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
['GE D2 DE G2 GA BGBd', 'G2 z d g2 g2 gbag f2'  
X:1
L:1/8
M:4/4
K:G
 GE | D2 DE G2 GA | BGBd cBAG | FGFE DEFG | AFdF E2 GE | D2 DE G2 GA | BGBd efge | dcBA GFGA | 
 B2 G2 G2 :| z d | g2 g2 gbag | f2 f2 fagf | e2 ef gfed | B2 e2 e2 ge | dBGB d2 d2 | edef g2 fe | 
 dcBA GFGA | B2 G2 G2 :|  