added assignment-1 q-6 code
added assignment 2 question 1 and 3,6 (same) code