Update lab04.cpp