Fixed example which wouldn't compile