Volume of cubes and prisms