exam.rb lib