Implemented lottery