Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
['g2 fe']  
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
|: d2 df ed BA | Bd ef e2 de | fa af g2 fe | fe dB A2 AB | d2 df ed BA | Bd ef e2 de | 
 fa af g2 fe | fe dB A2 AB | fd ad fd dd | fa af g2 fe | fa ae fd dd | fe dB A2 AB | fd ad fd dd | 
 fa af g2 fe | fa aa b2 ba | g2 fe g2 fe :|  