Sample code from WinBig Lotto iOS app