Added template class to example

Per my style, I added a template class to the example implemenation.
This utilizes a header file (.h) and a template source file (.tcc).
The Makefile was modified to include the template file extension.

The main file was modified to use the new template class.
Other small stylistic changes were made as well throughout.