Particle in a three-dimensional box