Why do you need this require? You have used `Pathname` before invoking this method