ch9.2.3
modified: has_key to in