marked two methods on Point2D public