A small terrier plays with a tennis ball on the beach .