Implement friend operation