added listing 6.4 - or.cpp