Transform the following sentence by replacing “was” with “were”.
The dog was happy when it heard the sound.
The dog were happy when it heard the sound.
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Transform the following sentence by replacing “was” with “were”.

### Response:
The dog were happy when it heard the sound.