Template class + examples how to use it