add homework4.cc