Construct a musical work following the provided guidelines and thematic elements.
X:1
L:1/4
M:3/4
K:D
['a f a', 'f f'  
X:1
L:1/4
M:3/4
K:D
|: a f a | g2 f | e d e | f/e/f/g/f/g/ | a f a | Tg2 f | e d e | f3 :: f f f | e/d/e/f/ e | g g g | 
 f/e/f/g/ f | a/g/f/g/a/b/ | Tg2 f | d/e/ f e | d3 |]  