Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:D
['DE F2', 'B2 BB'  
X:1
L:1/8
M:4/4
K:D
 DE | F2 E2 D2 DE | F2 FE FE D2 | B2 BB Bcdc | B2 A2 F2 FA | B2 BB A2 AA | GFED F2 FD | 
 E2 EE EFGF | E2 D2 D2 :| FA | B2 BB BBBA | B2 c2 d2 B2 | A2 AB AG F2 | E2 EE EEFA | B2 BB A2 AA | 
 GFED F2 FD | E2 EE EFGF | E2 D2 D2 :|  