move code hpp-> cpp
format code