https://testinar.com/article/linear_functions__finding_distance_of_two_points_course