CS 104: Completed assignment 5