Moved getPath to upper class