A simple example of writing function templates