Craft a musical work adhering to the specified theme and structure.
X:1
L:1/8
Q:1/2=100
M:2/4
K:D
['f2 fd', 'd3 (f/g/) a2 af b2 ba gf'  
X:1
L:1/8
Q:1/2=100
M:2/4
K:D
 (f/g/) | f2 fd | f2 fd | f2 fd | ec A2 | f2 fd | gf ed | cA Bc | d3 :: (f/g/) | a2 af | b2 ba | 
 gf ge | a2 ag | f2 fd | gf ed | cA Bc | d3 :|  