Define class structure