Create chapter2.cpp