declaration of pure virtual function subscribeToData() has been added