rename function name; complete exercise 3
modify exercise 10 for chapter 02