Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:6/8
K:D
['def edB AFD E2 D FAA AFA', 'f3 afd']  
X:1
L:1/8
M:6/8
K:D
 A | def edB | AFD E2 D | FAA AFA | Bee edB | def edB | AFD E2 D | FAA AFA | Bdd d2 :| g | f3 afd | 
 g3 bag | f3 afd | gfg e2 g | f3 afd | g3 bag | fga efg | fdd d2 :|  