Added some missing arguments to pub/sub example

Thank you for the book!