class Point { double x; double y; // Create a point from coordinates Point(double xVal, double yVal) { x = xVal; y = yVal; } }