headOption() example from txt book; ex5.1 toList func head