Worked on some of problem 22 remotely

Coding in a text editor is great in some ways, but scary in others. We'll see how many simple mistakes I made without the IDE to watch my back...