Uses a class.