LAB8

Some modifications to lab 8. Some of the code needs to be commented on to clarify.