better example
compiles with TS0.9.0