create message class for refactoring the printer class
solved merge conflict