Update shared.rb