Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/16
M:3/8
K:D
['A2 f2(fe).f.a a2gfg2 ABcdec defgag f2fefa a2gfg2', 'c2ecAc dcdef2']  
X:1
L:1/16
M:3/8
K:D
 A2 | f2(fe).f.a | a2gfg2 | ABcdec | defgag | f2fefa | a2gfg2 | ABcdef | d4 :: A2 | c2ecAc | 
 dcdef2 | e2edeg | f2afd2 | c2ecAc | dcdef2 | edefge | d4 :|  