introduced AreaBox class: contains two points to define a box