class mandatory for input