commented code, without implementing the seperate hough function