Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:4/4
K:D
['f2 (fd)', 'a2 (af)']  
X:1
L:1/8
M:4/4
K:D
 f2 (fd) | f2 (fd) | f2 (fd) | cecA | f2 (fd) | gfed | cABc | d2 d2 :: a2 (af) | b2 (bg) | 
 g2 (ge) | a2 (af) | f2 (fd) | gfed | cABc | d2 d2 :|  