ex1b: print accuracy.