Add solutions and unit tests for chapter 7: Mathematics and Probability