examples: separated creation of temporary directory