Layout of a neural network with three hidden layers