Added base class for neuron in order to separate logic