create a Message class for Bernard
refactor node finializing to workflow class