finished through exercise 6.2