implement basic neuron