Added solution for Rectangles