Main class structure