Finish second exercise for more complex branching.