More backprop stuff
almost compilable