Using templates

Using templates for class creation