sinatra calc with views and layout