stuff for building a neural network