Changed extension to cpp to be compiled with C++ compiler