CS 104: Completed assignment 9