inheritance lesson