Write an implementation of properties reader and writer