Lab4Q4.cpp done