Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/4=160
M:4/4
K:D
['ec ec', 'df ec'  
X:1
L:1/8
Q:1/4=160
M:4/4
K:D
 AB | ce/e/ ee ea ec | ec ec B2 AB | ce/e/ ee ea ec | ec ec A3 z | ce/e/ ee ea ec | ec ec B2 g2 | 
 a2 gf ea ec | ec ec A3 z |: a2 gf df ec | d/d/d ec df ec | a2 gf df ec | dB ec A3 z :|  