Now have a working solution and test cases for the rectangles problem