chapter 4 complete. added view template.