chapter 7: added sortPar
chapter 7: added sortPar via map
chapter 7: sequence (exercise 5)