done with all the changestold by swapnil in assignment2