begain to implement Lottery scheduling