CS 104: Completed assignment 6 #4