Develop tuneful melodies adhering to the specified letter notation and including the supplied thematic aspect.
X:1
L:1/8
M:4/4
K:D
['faaf g2 fg', 'fe d3 c defd edBd egfe d2', 'dB B2 g2 fg']  
X:1
L:1/8
M:4/4
K:D
|: faaf g2 fg | ed (3Bcd e3 g | faaf g2 fg | efdB A4 | faaf g2 fg | ed (3Bcd e3 g | fa a2 baaf | 
 edef g2 fe |: d3 c defd | edBd egfe | d2 dc d2 fd | efdB A3 B :: dB B2 g2 fg | edBd egfe | 
 dB B2 g2 fg | efdB A3 B :|  