created a local storage and converted array to string using JSON