f1 is solved - need to make the program more modular though.