small exercise for a url shortener in dart