added adding friend function