still errors in assignment2