Another draft for a variable class in templates