Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:D
['A,2 B,2 B,2 A,2 D4 E2 F2'  
X:1
L:1/8
M:4/4
K:D
 A,2 |"D" DFED"G" B,2 B,2 |"A7" A,2 A,2"D" D4 |1,3"A7" E2 E2"D" F2 F2 | 
"D" DFED"G" B,2"A7" A,2 :|2,4"D" dcdA"G" BdAG |"A7" FDEC"D" D2 :: fg |"D" agfa"G" gfeg | 
"D" fedf"A7" edcA |1,3"D" dcdf"G" edeg |"D" fedf"A7" e2 fg :|2,4"D" dcdA"B" BdAG | 
"A7" FDEC"D" D2 :|  