instance_of? vs class