Completed assignment 6