added attr_accessor :uri.