finished working implementation of neural net classifier