adding perceptron_example.py to repo