In a chat app, the leader is the only user who can send an invite. Set a method called invite() directly on leader.

Make sure to type def invite.