reorganized examples
updated find_variable function