Completed assignment 3