Object function as a class.