Update lab_7.cpp