CS 104: Completed assignment 6 #2 and #3