Added save function to base class