Computing Slope of Straight Lines