class structure