Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/4=120
M:3/8
K:G
['D (GB)d (BG).B (A/B/)(c/A/)(B/G/) AFD G/>A/B/>G/A/>F/ GEC', 'G2 D TG(Bd) gdB (A/B/)(c/d/)(e/^d/) (ecA) (G/A/).B/.c/.d/.e/'  
X:1
L:1/8
Q:1/4=120
M:3/8
K:G
"^Slowish" D | (GB)d | (BG).B | (A/B/)(c/A/)(B/G/) | AFD | G/>A/B/>G/A/>F/ | GEC | DGTF | G2 :: D | 
 TG(Bd) | gdB | (A/B/)(c/d/)(e/^d/) | (ecA) | (G/A/).B/.c/.d/.e/ | dBG | AdT^c | d2 B/=c/ | 
 (dg).d | BGB | (A/B/)(c/A/)(B/G/) | (AF)D | TG/>A/B/>G/A/>F/ | GEC | DGF | G2 :|  