class ColorPainter implements Drawable, Serializable {

    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof ColorPainter)) {
            return true;
        }
        ColorPainter that = (ColorPainter) obj;
        if (!this.color.equals(that.color)) {
            return false;
        }
        return true;
    }

    public  ColorPainter();
    public  ColorPainter(Color color);

}