http://unriskinsight.blogspot.co.at/2014/06/fast-functional-goats-lions-and-wolves.html