Wrote code structure and serialization