added assignment 1 question 6 code
added assignment 2 questions 1, 6 code