Teaching a university course on the mathematics of gambling