My chapter 10 work

Doesn't deal with undef values, which I think the exercise asked for (hint: use `//` here).