message definition from class factory