Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:3/4
K:G
['G2 FA A2 A2 GB B2 B2']  
X:1
L:1/8
M:3/4
K:G
 G2 |"D" FA A2 A2 |"G" GB B2 B2 |"C" AB c2 e2 |"G" d2 z2 Bd |"D7" dc c2 Ac |"G" cB B2 GB | 
"C" BA c2"D7" FA |"G" G4 |]  