update example to a version which actually compiles