Implemented add, delete, and clear functions in CLI.