Create perceptronmain