created sender class and expanded subscriber to own class