The smart dog understood what the young man said