Implemented Client's role (sender & receiver)