Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
M:4/4
K:D
['f2 fd', 'ag f2 fd gfed |1 cABc defg'  
X:1
L:1/8
M:4/4
K:D
|: f2 fd f2 fd | f2 fd Bcde | f2 fd gfed |1 cABc dcde :|2 cABc defg |: a2 af b2 ba | gfge a2 ag | 
 f2 fd gfed |1 cABc defg :|2 cABc dcde ||  