splitted sample code, cleaned sobel file