Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/8=140
M:2/2
K:G
['c2 A2 AcBA GEDE GABd egfa gedB', 'A2 A2'  
X:1
L:1/8
Q:1/8=140
M:2/2
K:G
"^A dorian" ed | c2 A2 AcBA | GEDE GABd | egfa gedB | ABAG Aged | c2 A2 AcBA | GEDE GABd | 
 egfa gedB | A2 A2 A2 :| ef | g2 ga gedB | A2 A2 A2 ef | geaf gedB | ABAG AGEG | A2 AA AcBA | 
 GEDE GABd | egfa gedB | A2 A2 A2 :|  