ADding buggy c++ version