Finished both examples so they can send and consume messages.