Added rectangle function