Updated hw0.cpp