Added new point selection function and a new example