sml and ruby programming (from coursera)