fixed Rectangle confusion. Implemented inheritance