Code in C++