Use struct to store the name and the function pointer of the command