testing examples from the book http://jan.newmarch.name/go/