Lab4Q3.cpp done