working on lecture 18, need to do ex 4 and 5