Stateful assignment

using local storage