adding template method example