check class structure