Finish 7.1.cpp