added friendship model and register_friendship