China agrees to discuss cyber security with U.S.