sample code from Adidas Predator project (http://hedoesthese.com/f/#/project/adidas-predator)