Computing L2 error, detecting edges, playing around with prediction