practice sync with localstorage