Legacy code of stock portfolio analysis project