added a branching example