Gravity and spin in the box example