minor aesthetic tweak;
started to add Exercise 8;
settled on a definitive version, which merges features of all three, and properly assumes a vector as input;