implemented list command.