Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/16
Q:1/4=90
M:2/4
K:Amin
['A2AB c2cd', 'abag e2e^f'  
X:1
L:1/16
Q:1/4=90
M:2/4
K:Amin
 A2AB c2cd | e2ed eaa2 | A2AB c2cd | e=fed eAA2 | A2AB c2cd | e2ed eaa2 | abag e2e^f | gedB BAA2 || 
 abag e2e^f | g^fga beeg | abag e2e^f | gedB BAA2 | abag e2e^f | g^fga beef | g^fef gedB | 
 BcBA GEE2 |]  