lab 1 written at c++