2-dimensional and 3-dimensional boxes