Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/4=100
M:2/4
K:Amin
['(dB) GB (d2 e)']  
X:1
L:1/8
Q:1/4=100
M:2/4
K:Amin
 c/d/ | (eA) AA | EA AB/c/ | (dB) GB | (d2 e) e/d/ | cB/A/ BA | (GA) A(B/c/) | (dB) GB | 
 (d2 e) c/d/ | e/d/e/^f/ gf/g/ | a^f gf/g/ | ec BA | e^f gc | BA A2 | B/c/d/B/ GA/B/ | cd ec | 
 B2 .A |]  