This is a smart contract for lotteries. But it shouldn't be used in a real contract because this isn't safe and optimized.