Human and dog thinking