generate multiple classes for inputs