final answers for assignment 1