How to instantiate Path objects.