finished TPE exercise 8