new changes for Rectangle class