Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['G2 G AGA', 'G2 d gfg efg fdd def gfg'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 D | G2 G AGA | Bdd efg | G2 G AGA | BGE EDE | G2 G AGA | Bdd efg | edB AGA | BGF G2 :| d | 
 gfg efg | fdd def | gfg aga | bge e2 f | gag efg | agf efg | edB AGA | BGF G2 :|  