put calls to perceptron stuff in main