Add a class for the type field