lottery

another attempt at merging the code :P