Update Chapter B.cpp