add simple backtracking
update example to use backtracking with modular expressions