Develop tuneful melodies adhering to the specified letter notation and including the supplied thematic aspect.
X:1
L:1/16
M:2/4
K:D
['B2g2 A2f2 f2ef']  
X:1
L:1/16
M:2/4
K:D
|:"D" A2f2"G" B2g2 |"D" A2f2 f2ef |"A7" gfed cdef |"E7" edcB"A7" AGFG |"D" A2f2"G" B2g2 | 
"D" A2f2 f2ef |"Em" gfed"A7" cABc |1"D" d2f2 d2>B2 :|2"D" d2f2 d3 z |:"D" F2A2 ABAF | 
"G" G2B2"Em" B2cB |"A7" A2cB AGFE |"D" DFAB"A7" A2AG |"D" F2A2 ABAF |"G" G2B2"Em" B2cB | 
"A7" ABcB AGFE |"D" D2F2 D2 z2 :|  