exercise 4b for learning 1178640