just starting to write/learn C++ version...