now the program can see if the input is a expression or a function