Attempt to implement traits for Haxe