very simple example of custom iterator in C++