Denis Koroskin: > I believe this breaks encapsulation, You may be right, I'm learning such thematic still. Can you explain why do you think it breaks information hiding? The two static variables are inside the method, and they can't be seen from outside. Bye and thank you, bearophile