Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
M:2/4
K:D
['ag B>B AA', 'ddd A ef g>c de f>d cd']  
X:1
L:1/8
M:2/4
K:D
 A | Af f>f | ag B>B | AA f>e | ddd z/ A/ | Af ff | ag B>B | AA f>e | ddd :: A | ef g>c | de f>d | 
 cd e>d | cBA z/ A/ | Af ff | ag B>B | AA f>e | ddd :|  