updating assignment2,3,4 - all done