checking classes using be_a