fixed := (teachers example code was a little off) and reverted to old hasNext() function until the new one is fully implemented (so the program can continue to run)