some additional space optimization in an example
export 'Dir' type