begin programing exchange_query