Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/2
K:G
['gG G/G/G', 'gddg aeef'  
X:1
L:1/8
M:2/2
K:G
 (g | g)G G/G/G BAAB | gG G/G/G gaba | gG G/G/G B(AA)B | GEFD (E2 E) :: f | gddg aeef | 
 gdde g/f/g/a/ ba | gddg aeef | (g/a/b) a>g e2 e :|  