writing example files to resources folders