rewriting basic format of lexer to use folds
folds both set to be tested