Instead of having the whole thing in the `main` method, can we put the heavy lifting in a method with the signature:

    public static double area(Point[] points)

or

    public static double area(List<Point2D> points)