Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/4
M:4/4
K:D
['d d']  
X:1
L:1/4
M:4/4
K:D
 D F/F/ A B | A F A z | d d d d | (B/ A3/2) z z/ d/ | d/ d3/2 d B | A B/ A3/2 F/F/ | G/G/ G F E | 
 D2 z2 | z2 A2 | A/A/ A A B | A2 z d | d/d/ d d e | d2 z d | d d d B | A B/ A3/2 F | G/G/ G F E | 
 D2 z2 |]  