Main program build neural network