Implemented and tested serialization for storage