portfolio.spec function

constructor for class portfolio