Update Q4.cpp