added c++ coding style