... I included them here (with some changes in names and code) to make the sample complete. In some cases we can remove "static" restriction. OK, I understand. However, for the rest of us they are part of the class, so it would be better if those static functions were defined ...