How to rotate a rope like it is holding from 2 points?

e.g. in the following image the boys are holding the rope and rotate it,
i am very great full to get the script, i am very beginner. ,

I have got my solution myself.
the rotation script is following

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RopeRotation : MonoBehaviour {

public float Rotatespeed = 3f;
public Transform target;
private Vector3 xAxix = new Vector3 (1, 0, 0);
void Update(){
	this.transform.RotateAround (target.position, xAxix, Rotatespeed);
}

}
have fun!