Let's refactor the code of publisher and subscriber a bit

Lesson unavailable