Implement Point class.