Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
['cA A2 EA A2', 'gfgd BG G2 DG G2 Bdef g2'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
"^A dorian" B | cA A2 EA A2 | BGdc BG G2 |1 cA A2 EA A2 | cded cAA :|2 A^GAB cBcd | egdB BAA || z | 
 Bdef gfgd | BG G2 DG G2 | Bdef g2 fg |1 egdB BAA :|2 abaf gfed |"^final" A8 |]  