Base Main class structure.