PorftfolioManager.java

Do we have to add list or array of portfoliotrade in portfoliomanager.java as a field

It’s an interface file I believe. You should be working on the implementation file.