created a mkdirs method