exercise 2.3 rectangle