create portfolio class and revamp rest of code to incorporate portfolio class