added class to exam.rb and to exam_test.rb