adding code for measuring accuracy; lecture10