Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:2/2
K:A
['cAec fefg'  
X:1
L:1/8
M:2/2
K:A
"^[A5d" e{f}g |"A" aA A2 cAec |"Bm" Bcde"E" fefg |"A" aA A2"^(F#m)" cA"E"eA |"D" fd"E"ge"A" aefg | 
"A" aA A2 cAec |"Bm" Bcde"E" fefg |"D" agfe"Bm" fedc |"E7" defg"A" a2 ||"^[B5d" ed | 
"A" cAEA cAec |"Bm" Bcde"E" f2 ed |"A" cAEA cAeA |"Bm" fd"E"ge"A" a2 ed |"A" cAEA cAec | 
"Bm" Bcde"E" fefg |"D" agfe"Bm" fedc |"E7" defg"A" a2 |:"^[C5d" AF |"A" EA A2 cABA | 
"E" GABc d2 cB |"E" GB B2 EB B2 |"E" GB B2"A" A2 AF |"A" EA A2 c2 BA |"E" GABc defg | 
"D" agfe"Bm" fedc |"E7" defg"A" a2 :|  