Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:A
['e A/A/A c2 e>a c>A A/A/A d>=g', 'e>ac>a g>dB>G a2 (ef/g/) a>ec>A a2 =g>dB>G'  
X:1
L:1/8
M:4/4
K:A
 e |:"A" A/A/A c2 e>a c>A |"A" A/A/A c2"G" d>=g B>G |"A" A/A/A c2 e>ac>a | 
"G" =g>a"D"e>f"G" g>dB>G ::"A"{g} a2 (ef/g/) a>ec>A |"A"{g} a2 (e>f)"G" =g>dB>G | 
"A"{g} a2 ef/g/"A" a<e"D" f>d |"A" e>ac>a"G" d=gBG :|  