First funtional version, with "list" command