Rough out logic flow for an average perceptron