Use sinatra

rewrite using Sinatra