Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:C
['c2 g2 g>g g>fe>d c2 c>c c2', 'd2 d2'  
X:1
L:1/8
M:4/4
K:C
 c2 | g2 g>g g>fe>d | c2 c>c c2 c'>b | a>bc'>a g2 f>e | e2 d>d d2 f>e | f2 f>f f2 g2 | 
 a>bc'>c' c'2 g>f | edcg a>gf>e | d2 d>d d2 :: d2 | d2 d>d d>ef>d | e2 c>c c2 c'b | 
 a2 a>a a>bc'>a | b2 g>g g2 f>e | f>gaa efgg | a>b c'c' c'2 g>f | (3efg (3agf e2 d2 | c2 c>c c2 |]  