refactor sample do_stuff