public class Circle {
    private int radius;
    private String name;
    private static int numCircles;

    public Circle(int radius){
        this.radius = radius;
        numCircles++;
    }

    // setter
    public void setRadius(int r){
        if (r > 0) {
            this.radius = r;
        }
    }

    // getter
    public int getRadius(){
        return radius;
    }

    /**
     * Return the name of the Circle.
     *
     * @return the name of the Circle
     */
    public String getName() {
        return name;
    }

    /**
     * Set the name of the Circle to name.
     *
     * @param name The new name for the Circle
     */
    public void setName(String name) {
        this.name = name;
    }

    public static int getNumCircles() {
        return numCircles;
    }

    public double getArea(){
        return Math.PI * Math.pow(radius, 2);
    }

    public String toString(){
        return "Name: " + name + " Radius: " + radius;
    }
}
