Encog and base class