Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/2
K:A
['AAe>A f>Ae>=g', 'a2 e>g a>ec>A'  
X:1
L:1/8
M:2/2
K:A
 e | AAe>A f>Ae>=g | =GGd>B =gedB | AAe>A f>Ae>=g | =GGB>d e>AA :| g | a2 e>g a>ec>A | 
 =g2 d>g B>gB>=G | a2 e>g a>ec>A | B<=GB<d e>AA>g | a2 e>g a>ec>A | =g2 d>g B>gB>=G | 
 A>B=c>d e>dB>=g | =G>GB>d eAA ||  