import java.awt.*;

class Body {
    private double xpos;
    private double ypos;
    private Color color;
    private String name;
    
    public Body(double inX, double inY, Color inColor, double inMass,
            String inName, double inVx, double inVy) {
        xpos = inX;
        ypos = inY;
        color = inColor;
        name = inName;
    }

    // Returns the x-coordinate of this body's position.
    public double getX() {
        return xpos;
    }

    // Returns the y-coordinate of this body's position.
    public double getY() {
        return ypos;
    }

    // Configures how to paint this body. You won't need to use or modify
    // this method, but it depends on xpos and ypos returning the
    // coordinates of the body's center.
    public void paint(Graphics g) {
        g.setColor(color);
        g.fillOval((int) xpos - 10, (int) ypos - 10, 20, 20);
        g.setColor(Color.BLACK);
        g.drawOval((int) xpos - 10, (int) ypos - 10, 20, 20);
    }
    
    // Returns this body's name. You don't need to use this, though you
    // might end up using it for debugging purposes.
    public String toString() {
        return name;
    }
}
