creates portfolio class using inheritance pattern
creates share-portfolio class