refactoring of SalesHelperClass: remove duplicate code for outputInfoMessage and defineCostObject