Added Pub and Sub types, with #subscribe method