modulo and timer examples