Moved Rect1 to its own class

- Moved Rect1 to its own class