Develop melodies utilizing the stated letter notation and the provided theme.
X:1
L:1/8
M:4/4
K:D
['B2 dB', 'BA Beec dcde fedB ADFA e2 ef']  
X:1
L:1/8
M:4/4
K:D
|: B2 dB BAFA | B2 dB BAFB | AF F2 DF F2 | AFdB ADFA | B2 dB BAFA | B2 dB BAFB | AFAB defd |1 
 e^def =d2 BA :|2 e^def =d2 gf |: edef dB B2 | edef d2 BA | Beec dcde | fedB ADFA | e2 ef dB B2 | 
 gB B2 defg | afbf afeg |1 fedB A2 gf :|2 fedB ADFA ||  