Completed containsRectangle