working on chapter 4 problems the rectangle class.