GrowingRectangle.java updated