Added do_lottery()