added first draft of persistence module