add class to write results.