math and dogs