book code from GOOS