Code challenge addressing this gist: https://gist.github.com/mjallday/fddde8cdac01cf7ced72