Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:C
['G B2 (AG)(GA) B2 (AB)(AG) E2 (D3/2']  
X:1
L:1/8
M:4/4
K:C
 G | B2 (AG)(GA) B2 | (AB)(AG) E2 (D3/2 E/) | G3 A G2 (AB) | c2 e2 d3 d | (ed)(eg) d2 AB | 
 (cB)(AG) E2 DB, | D2 D2 d2 dc | B2 A2 G3 ||  