example code compiles