lab9 modified