changes done for assignment 2