lab 7 copied and pasted