Template member function example