exercise 5

analysis and commit of exercise 5