Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/8=180
M:12/8
K:G
['dBd GBd edB dBc d2 d GAB', 'GBd GFG ede'  
X:1
L:1/8
Q:1/8=180
M:12/8
K:G
 e | dBd GBd edB dBc | d2 d GAB A2 G EGE | dBd GBd edB dBc | d2 d GAB ABA G2 :| c | 
 ded GBd GFG ede | dBd edB d2 B ABc | d2 G GBd GFG ede | d2 B AGA BGF G2 :|  