Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/4
M:4/4
K:D
['B c d']  
X:1
L:1/4
M:4/4
K:D
 z2 z D | F A G (F) | E D F G | A3 A | B c d c | B A G B |[M:5/4] A2 B/c/ | d c/B/ B A B | 
 G A F2 A | D C B, B2- |[M:3/4] B B2 |[M:4/4] G E D C- | C2 A2 | B c d (A) | B G F E | D3 z |]  