answers for assignment 3