dual class structure