Added Rect, a class with common rectangle functions