Implemented local storage. Issue #6