Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/8=120
M:6/8
K:D
['f2 e', 'D3 DFA AFD G2 B B2 B'  
X:1
L:1/8
Q:1/8=120
M:6/8
K:D
"^primo" f2 e f2 e | dcd A2 A | BGB AFA | GEG F2 F | f2 e f2 e | dcd A2 A | BAG FGE | D2 D D3 :: 
 DFA AFD | G2 B B2 B | Gef ecA | d2 f f2 f | afd Bdf | ged cBe | BAG FGE | D2 D D3 :|  