started adding pubSub class