Mod

mod function implement. lol