work with step 6, can print messages, message counter works