Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/4
M:3/2
K:C
['g3 a e f g', 'c d e f3 e'  
X:1
L:1/4
M:3/2
K:C
|: g3 a e f | g f2 e/d/e/f/e/f/ | g3 a e f | g f2 e3 :: c d e f3 | e f c d/c/B/A/ G | c d e f3 | 
 e a d c3 |]  