bob: Simplify exercise with functional solution

Closes #75.
Merge pull request #78 from sjakobi/functional-bob

bob: Simplify exercise with functional solution