Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:G
['|:{a} gf ed{c}BA G3 E DEGB AE', 'gfed Be{a}ed e z2 f g3 e'  
X:1
L:1/8
M:4/4
K:G
|:{a} gf | ed{c}BA G3 E | DEGB AE E2 |{A} GEDB DEGA |1{c} BABd e z :|2 Bdgd e z2 f || g3 a gfed | 
 Bdde d B3 | g z ag{a} gfed | Be{a}ed e z2 f | g3 e f3 d | (3efg ed edB^c | dBAF{A} GFGA | 
{c} BABde z ||  