Fix sample code so it compiles