Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/8=80
M:4/4
K:none
['a2{g} a2{GdG}'  
X:1
L:1/8
Q:1/8=80
M:4/4
K:none
 e |{g} A2{GdGe} A>B{gcd}c{e}A{gcd}ce |{ag} a2{g} a2{GdG} ae{gcd}c{e}A | 
{Gdc} d2{g} f>d{gcd} c2{g} e>c |{gBd} B2{g} e2{A} e>f{g}e/>d/{e}c/>B/ | 
{g} A2{GdGe} A>B{gcd}c{e}A{gcd}ce |{ag} a2{g} a2{GdG} ae{gcd}c{e}A | 
{Gdc} d2{g} f>d{gcd}ce{gcd}c{e}A |{GdG} B2{g} A>B{G} A2{gcd} ce |]{ag} a2{g} a2{GdG} ae{gcd}c{e}A | 
{ag} a2{g} a2{GdG} ae{gcd}ce |{Gdc} d2{g} f>d{gcd} c2{g} e>c | 
{gBd} B2{g} e2{A} e>f{g}e/>d/{e}c/>B/ |{g} A2{GdGe} A>B{gcd}c{e}A{gcd}ce | 
{ag} a2{g} a2{GdG} ae{gcd}c{e}A |{Gdc} d2{g} f>d{gcd}ce{gcd}c{e}A |{GdG} B2{g} A>B{G} A3 |]  