finished assignment 1 for Advanced C++ (60-340)