Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:2/2
K:A
['A,CEG A2', '[ee]3 [ee]- [ee]2'  
X:1
L:1/8
M:2/2
K:A
 A,CEG A2 A2 | cBAB{B} c3 A,- | A,CEG A2 c2 | B2 A2 A4 | A,CEG A2 A2 | cBcd e2 e2- | edef afed | 
 cABc A2 :| e2 e2 edcd | ([de-] [ee]2) e [ee]3 [ee]- | [ee]2 ef afed | cABc A3 ([e-d] | 
 [ee]2) ee edcd | ([de-][ee])eec [ee]3 [ee]- | [ee]2 fg afed | cA B2 A2 A,- ||  