CS 104: Completed assignment 6 #5