Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/4
M:4/4
K:G
['A D G']  
X:1
L:1/4
M:4/4
K:G
 z3 G | G G/G/ G/G/ G | B A A D | G F G A/A/ | B A B c/c/ | d d/d/ B G/G/ | c B/B/ A D | G E D D | 
 D4 |]  