modifications sinatra calc homework