full code of neuron model