control flow demo