Added spin(). I think we should create a talker and listener class instead of adding the functionality to this document.