Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/4
M:3/4
K:C
['c G E', 'B G'  
X:1
L:1/4
M:3/4
K:C
"^A" G | c G E | C3/2 D/ E | F A d | B G B | c G E | F3/2 G/ A | G c B | c3 :|"^B" c/d/ | e c e | 
 d B G | c A c | B G c/d/ | e c e | d B G | c B A | G2 A/"^To A" B/ ||  