Dogs have been shown to learn by inference