Renamed to reflect language
C code working properly
Added C++ variant