Added code from second practice
Moved two methods out of template class definition for demonstration purpose