Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['', 'G EAB =c3 Adc d2 e fag', 'dcd (3fga f gec', 'D3 d3 a3 gfg aba d3 aba'  
X:1
L:1/8
M:6/8
K:D
 G |: EAB =c3 | Adc d2 e | fag efd | ABG FAD | dcd afd | Bef gag | f2{g} d ecA | GEA D3 :: 
 dcd (3fga f | gec AFA | dcd AGA | =cBc EFG | dcd (3fga f | gec Ace | dcd AGA | GEA D3 :: d3 a3 | 
 gfg aba | d3 aba | ged cde | d2 f ecA | GAB AFG | Ace Bce | GEA D3 :|  