How to teach your dog to wait.