commiting example4 for chapter 4, it demos rendering templates in different outlets