adding a sample backprop algorithm