modified lab 8.2