complete exercise 2.34

complete exercise 2.34