Homework for my C++ Class