Third year C++ project