use Point class to replace int.