updated file with solution for assignment2