control flow homework