added methods.rb