Refactored bounds into the Box class.