added Rect class