revised portfolio.rb file