simple schedulers in ruby