add some c++ practices