class testing program (not mine)