An implementation of modal UDT — LessWrong