Update Rectangle.java

We don't need any getters in the sample. Deleted the two remaining ones.