Updated and added template exercise code.