Update with "class function" - useful in the case where no instance is needed to be generated.