neural network class skeleton