finished the sobel example