Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/4
M:4/4
K:G
['c2 c A G A B c']  
X:1
L:1/4
M:4/4
K:G
 | c2 c2 | c2 c A | G A B c | d2 z d | e2 d d | c2 c A | G A B c | d2 z d | e2 d d | c3 c | B2 A2 | 
 G4 |]  