Implemented the ls command.