class function defined inline.