The man is training a dog to zigzag through poles .