So Baloo , the Teacher of the Law , taught him the Wood and Water Laws : how to tell a rotten branch from a sound one ; how to speak politely to the wild bees when he came upon a hive of them fifty feet above ground ; what to say to Mang the Bat when he disturbed him in the branches at midday ; and how to warn the water-snakes in the pools before he splashed down among them .