This is the chapter 2 work we did in the JQuery model