define #getSlope function with two params, point1 & point2