```ruby
require "sinatra/base"
require "sinatra/reloader" if development?
require "twitter"

class Star < Sinatra::Base

  get '/' do
    'Star'
  end

end
```

Add Twitter configuration. Load config values from yaml file.
user
```ruby
require "sinatra/base"
require "sinatra/reloader"
require "twitter"

class Star < Sinatra::Base

  configure do
    @@config = YAML.load_file('config.yml')

    Twitter.configure do |config|
      config.consumer_key = @@config["twitter"]["consumer_key"]
      config.consumer_secret = @@config["twitter"]["consumer_secret"]
      config.oauth_token = @@config["twitter"]["oauth_token"]
      config.oauth_token_secret = @@config["twitter"]["oauth_token_secret"]
    end
  end

  configure :development do
    register Sinatra::Reloader
    also_reload "*.rb"
  end

  get '/' do
    Twitter.favorites[0].to_s
  end

end
```
assistant