Code for the tutorial http://pravin.insanitybegins.com/posts/building-url-shortener