Fixed format. Ready to post

The triple quotes wouldn't work for showing code, for some reason, but indenting did the trick. Weird.