example compiles; but problem with alloc'ing ui objects