C++ Homework Project