Create file repository and implements serialization for this repository