first working example with typescript