Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:D
['B2 dB'  
X:1
L:1/8
M:4/4
K:D
 B |"D" AddA"A7" d2 Ad |"D" AddG"G" B2 dB |"D" AddA dABd |"E7" feef"A7" e2 ef |"D" AddA"A7" d2 Ad | 
"D" AddG"G" B2 dB |"D" AddA"G" Beed |"A7" caac"D" d2 d :: g |"D" faaf"A7" a2 fa | 
"D" aAdG"G" B2 dB |"D" AddA dABd |1"E7" feef"A7" e2 eg |"D" faaf a2 fa |"D" aAdG"G" B2 dB | 
"D" AddA"G" Beed |"A7" caac"D" d2 d :|2"E7" feef"A7" e2 ef |"D" AddA d2 Ad |"E7" AddG"A7" B2 dB | 
"D" AddA Beed |"A7" caac"D" d2 d |]  