Use is_a? rather than ===