more ex 7 comments.
exercise 3 and code cleanup