makes shareportfolio inherit from portfolio