Committing exercise 2 from chapter 7.
Merge branch 'master' of https://github.com/HenrikSamuelsson/c_primer_plus_solutions