Which of the following is the best way to revise this sentence for clarity? 'The dog was barking loudly and it scared the cat.'