Creating directories
First part of code