extract common classes