Added lab5.cpp