Update lab9.cpp