Develop tuneful melodies adhering to the specified letter notation and including the supplied thematic aspect.
X:1
L:1/4
M:4/4
K:G
['', 'd B', 'B A', 'e d']  
X:1
L:1/4
M:4/4
K:G
 G3/2 A/ |: B B B A | B d d B | B A A B | A3 d | e d g f | e d B G | A G G A |1 G2 G3/2 A/ :|2 
 G2 g f |: e d d B | d B G3/2 A/ |1 B A B c | B2 g3/2 f/ :|2 B A A B | A2 G3/2 A/ || B B B A | 
 B d d B | B A A B | A3 d | e d g f | e d B G | A G G A | G2 ||  