SMS: Elements of finite mathematics