Update Chapter 4.cpp