Create snake_calculate.cc