change Rectangle Square class to be immutable and benefits of imutability: less code, fewer tests, correct code and safe inheritance