Generalized to a class.