Very basic concept using C++