added stuff in lab1-5.cc