end of chapter 1 added template with properties.