Pets can learn to do tricks