Solution to seventh LearnYouNode challenge.