Examples from haxe2 book