add two demos of template method pattern.