updatet the classes Sender and Receiver