Example taken from 'Play for Scala'