Craft a musical work based on the specified structure and given theme.
X:1
L:1/8
M:4/4
K:D
['A>G F>Ad>e (3fgf e>f g>fe>d B>cd>G', 'A>G F>Ad>e f>dc>d'  
X:1
L:1/8
M:4/4
K:D
|: A>G | F>Ad>e (3fgf e>f | g>fe>d B>cd>G | F>Ad>e f>dc>d | b>af>d e2 A>G | F>Ad>e (3fgf e>f | 
 g>fe>d B>cd>G | F>Ad>f e>dc>e |1 d4 z2 :|2 d4- d3/2 |: A<de/ | f>dc>d (3BcB A>G | F>Ad>e f>dc>d | 
 b>da>d g>fe>d | B>ee>d c>de>g | f>dc>d (3BcB A>G | F>Ad>e f>dc>d | (3bcb (3aba (3gag (3fgf |1 
 e>Ac>e d3/2 :|2 d4 z2 ||  