Updated hw0.cpp: added the exit command