added base.rb