rewrote shopping list app, to follow Object Literal Pattern