Is there any reason that function as class member instead of object member?