done, refactored, added unit test for `create_paths`