Compiles but example doesn't run