adding doctest for rectangle class.