jac444 lecture 9 and 10 codes + sample answers to assignment1