A simple Perceptron implementation we did in AI class