created the addFriend funciton