(#10) - add global scope to the constructor with localstorage