https://github.com/drbaggy/perlweeklychallenge-club/tree/master/challenge-196/james-smith