Calculating Slopes of Straight Lines