chapter one, and some localStorage stuffs