Compose music that abides by the dictated structure and encompass the given theme
X:1
L:1/4
M:4/4
K:D
['A A', 'z _c c B B A A'  
X:1
L:1/4
M:4/4
K:D
|: D/E/F/G/ A A | d c/B/ A A | D/E/F/G/ A A | d2 A z :: _c c B B | A A G G | B3/2 c/ d B | 
 A2 G z :|  