implemented the "list templates" command