Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/4
M:4/4
K:G
['D G3/2 G/ B G G2 E']  
X:1
L:1/4
M:4/4
K:G
 D | G3/2 G/ B G | G2 E G | D G A B | A3 | D | G3/2 G/ B G | G2 E G | D G B A | G3 D | 
 A3/2 A/ G A | B2 B B | c B E A | (G2 F) D | G3/2 G/ B G | G2 E G | D G B A | G3 ||  