Homework C++ Project