Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:6/8
K:D
['AFA (d2 d) def', 'g2- g gab f2- f fga']  
X:1
L:1/8
M:6/8
K:D
 d | (A2 A) AFA | (d2 d) def | (g2 e) (f2 d) | efd BdB | A2- A AFA | (d2 d) def | afd (e2 f) | 
 d3- d2 || f | g2- g gab | f2- f fga | e2- e ede | fdB (A2 e/f/) | g2- g gab | f2- f fga | 
 dcB Acd | efe dcB ||  