added comments. modified the program to loop over all examples, instead of a specific class...