Added task2.cpp, CMakeLists.txt remade for task2