included <ctype.h> to use the tolower() function