just a simple example for lazy evaluation implemented in c++