add friend model and add friend function