Hanson's codes