checktype.rb #2