screw it, let us just write in C++