updating struct_test.cpp