CS 104: Completed assignment 8