a method called makeDir