A neural network class for Objective-C