Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['A d>ef>d e2 cA d>fe>d c A2', 'a2 A d>ef>d e2 cA d>fe>d c', 'a a>ff>a', 'd3 a a>ff>a g2 e>g f>de>d c']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
"^Moderate" A | d>ef>d e2 cA | d>fe>d c A2 A | d>ef>g a2 ag | f>ed>e f a2 || A | d>ef>d e2 cA | 
 d>fe>d c A2 A | d>ef>g a2 a>g | f>d Bc d2 z |] | a | a>ff>a g2 eg | f>de>d c A2 a | a>ff>a g>bag | 
 f>dde d3 || a | a>ff>a g2 e>g | f>de>d c A2 A | d>ef>g a2 a>g | f>d Bc d2 |]  