Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
M:6/8
K:D
['d2 A Bcd', 'ege faf', 'FGA Bcd', 'a2 f g2 e']  
X:1
L:1/8
M:6/8
K:D
 d2 A Bcd | gfe fdA | d2 A Bcd | gfe d2 :: ege faf | ged cBA | ege faf | edc d3 :: FGA Bcd | 
 fge ddd | FGA Bcd | fge d3 :: a2 f g2 e | fed cde | a2 f g2 e | fge d3 :|  