Friend and Unfriend functions complete