class add in list template