@Override
    public boolean contains(Object o) {
        for (Object x : mas){
            if (x != null && x.equals(o)){
                return true;
            }
        }
        return false;
    }