Added nullcheck to Point.slopeTo method to complete assignment