added self. to base class