class object-> struct