add class structure