Course project in C++