better bool example for C++