shared.rb comments added