SMS dit: Algorithm Design: