update sample.ex