updated examples with sending data