Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:C
["c2 e2 ce g2 (eg c'2) a2{ab}", 'c4 g2 g2{ga} (g>^f) g2 (ag=fgagfg) e2'  
X:1
L:1/8
M:4/4
K:C
 (g2 | c'2) c2{cd} (cB) c2 | e2 ce g2 (eg | c'2) a2{ab} a2 ba | gfed c2 eg | c'2 c2{cd} cB c2 | 
 e2 ce g2 (eg | c'2) a2{ab} a2 ba | gfed c4 |: g2 g2{ga} (g>^f) g2 | (ag=fgagfg) | e2 c2 c2 e2 |1 
 dBdB c4 :|2 dBdB c2 z2 |]  