Updated class code for session 5: model view and localstorage example with a lot of comments