Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:Amix
['EGAB ABcd e2 eg eBA(B B)dde dcBA', 'eg a2 ab'  
X:1
L:1/8
M:4/4
K:Amix
 EGAB ABcd | e2 eg eBA(B | B)dde dcBA | G2 G4 GG | EGAB ABcd | e2 eg eBA(B | B)dde dcBA |1 
 A2 A4 AA :|2 A2 A4 eg || a2 ab agee | agag e2 eg | a2 ab ag e2 | d2 d4 eg | a2 ab agee | 
 agag e2 e2 | egee BdBB |1 A2 A4 eg :|2 A2 A4 AA ||  