there is example of storing data for C++ struct.