old code just for learning about backprop