Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:A
['', 'E2 A2 ABcd efec d2 cd e2', 'cd e2'  
X:1
L:1/8
M:4/4
K:A
 AF |: E2 A2 ABcd | efec d2 cd | e2 A2 ABcA | B2 =G2 G2 GF | E2 A2 ABcd | efec d2 cd | 
 e2 a2 a=ged | c2 A2 A2 AF :: ef | =gfef gfef | =gfed c2 cd | e2 A2 ABcA | B2 =G2 G2 GF | 
 E2 A2 ABcd | efec d2 cd | e2 a2 a=ged | c A2 A4 :|  