Enhanced and generalized the boxes model. Added a generic Interval type but it is not being used yet.