Created Topic class and changed worker interface