Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/8=270
M:4/4
K:A
['eAAA (3Bcd ef', '(3ef=g aa afef'  
X:1
L:1/8
Q:1/8=270
M:4/4
K:A
 eAAA (3Bcd ef | eAAA Bc [dD]2 | eAAA (3Bcd ef | =gedB A2 A2 :| (3ef=g aa afef | =gage dB e2 | 
 (3ef=g aa afef | =gedB A2 A2 | (3ef=g aa afef | =gage dB e2 | AA (3Bcd efef | =gedB A2 A2 |]  