updated rect module to use RectangleShape