A simplistic implementation of a perceptron