Resource Sharing of Device to Device Communication in Cellular Network