portfolio optimizer, program for week 3