SMS dit: Mathematical methods and programming