wrote some code for backprop, still not finished at all.