implement 'ls' and 'cd' commands