implement serialization
file structure example