added fns to Neuron class