creating perceptron