based on https://github.com/benyarb/playing-cards