@bmatsuo I agree that it's not a very efficient way to handle it, but the primary purpose of the example is to make sure that the tests are passable in the first place.

That said, I'm personally treating this as a way of learning, so if it's something that I've done, feel free to nitpick away and I'll try to make it as beautiful a solution as I can - regardless of whether it's needed or not.