adding exercise 2-4