builder pattern for the neural network