added point utility class and some helper methods in agent