lab2 modified