Added Token struct, Next(), and hasNext() functions