Added class templating

Signed-off-by: Grégory Planchat<g.planchat@gmail.com>