public class Gizmo
{
    private String maker;
    private boolean isElectronic;

    public Gizmo(String maker, boolean isElectronic)
    {
        this.maker = maker;
        this.isElectronic = isElectronic;
    }

    public String getMaker()
    {
        return maker;
    }

    public boolean isElectronic()
    {
        return isElectronic;
    }

    public boolean equals(Object other)
    {
        if(this == other)
            return true;

        if( ! (other instanceof Gizmo) )
            return false;

        Gizmo otherG = (Gizmo) other;
        return maker.equals(otherG.maker) && isElectronic == otherG.isElectronic;
    }
}
