reactor example