lab 6 rewrite jsut needs proof read. Lab9 still needs help on getting optimizer to sork on #2