added Invitation.accept method