this is the continue of brinaldi-tut on the local-storage part