Pattern entry lottery

Also nice tutorial