#10 adapted bool token implementation
#10 adapted num token implementation