Updated with names, added new function getAllPaths that come with pairs