Implemented a first draft
got a working version for localStorage sync