adding method to create and cd into directory