Pack spheres in a finite space