perceptron basic function work.