Construct musical works adhering to the required format and the supplied musical theme.
X:1
L:1/4
M:2/2
K:D
['d d', 'f a a f e d'  
X:1
L:1/4
M:2/2
K:D
 F A A B/c/ | d d d e/f/ | g e f d | B A A A/G/ | F A A B/c/ | d d d e/f/ | g e f d | B A A z || 
 f a a f | e d d e | f a a f | e d e z | f a a f | e d d e/f/ | g e f d | B A A z ||  