add an inherited class Rectangle