corrected some errors in assignment 4b.