Base class function almost done