finding the slope of a line