the kv sample code for elixir sample