finished through exercise 5 in lab 1