Fixed compilation errors in the example.