Converted to sinatra
Version 2