adding portfolio.rb for object functions