Finding dimensions of a cube box