Formatted "Behaviour" in c++ way

still need to actually implement the function in C++ way