Construct a musical work following the provided guidelines and thematic elements.
X:1
L:1/8
M:3/4
K:D
['d>(c d)(e f>)e (dc) (Bc) d>B BA', 'A>F (G>A) B>G B>(d c>)B A>c e>c'  
X:1
L:1/8
M:3/4
K:D
 d>(c d)(e f>)e | (dc) (Bc) d>B | BA A>B A>G | G2 F4 ::{/G} F>A A>F A>F | (G>A) B>G B>(d | 
 c>)B A>c e>c | d2 d2 z2 :|  