moved the scheduler.rb method into the event model
removed an unnecessary puts statement