Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:C
['[M:6/8][K:Ador] .abc d efe edB dBA A2', 'aga e2 f gfg'  
X:1
L:1/8
M:4/4
K:C
[M:6/8][K:Ador] .abc d | efe edB | dBA A2 B | GAG GBd | BAG G2 g | fed efg | aga e2 f | gfg dBd | 
 ecA A2 :: e | agaefg | aga e2 f | gfg def | gfg d2 e |1 aga efg | aga e2 f | gfg dBd | ecA A2 :|2 
 agf gfe | fededB | gfg dBd | ecA A2 |]  