How To Do Mod Logic And Algorithms