Example to persist object in C3