added assignment-1 q-6 code
added assignment 2 question 1 code