begin midterm.rb