Udacity project - because bored, brainteaser.