CS 104: Completed assignment 7