public class Polygon extends Shape {
    private Point[] vertices;
    
    // public constructor just takes an array of points
    public Polygon(Point[] vertices) { this.vertices = vertices; }

    public String toString() { return vertices.toString(); }

    // accessor method
    // get all the vertices as an array
    public Point[] getVertices() { return vertices; }

    //<<1b Implement your translate method here

    //>>1b

    //<<1c Implement your centre method here

    //>>1c
}
