Advanced exercise with branching/merging.