completed ex 1.26
expanded ex 1.22 trials and explanation to larger values of n