Working on a lottery system