finished the rectangleCheck exercise
...