Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:4/4
K:G
['B c d2 d2 d3 c B2']  
X:1
L:1/8
M:4/4
K:G
 B c | d2 d2 d3 c | B2 G4 c d | e2 e2 B3 c | g6 A B | c2 c2 B2 A2 | B4 A2 G2 | A2 B2 A3 G | G6 ||  