Here is the code, quite simple and I have added the option to display TaskDialog to inform users about picking the point.