A dog is running in the waves at the beach.
An animal is running outside.
A dog is an animal.
The beach is outside, and a dog is an animal.
A dog falls under animal category as part of its description running in the waves at the beach which means running outside as beach is not expected to be inside a home/indoors.