Successfully turned it into C++!