chapter 1 done && get temp.cpp