Update Rectangle.java

working