added more functions to Point class