Addition of example using class in template