Here’s a simple but naïve test of this code. We create an Irishman, “paddy”, and a Scotsman, “angus”, and press them into service imbibing each of the ancestral Libations at issue here.

Now, you can run this program (and rest assured, I did, one should never display code in a presentation what ain’t been run), and it produces the expected output.