Fixed compilation errors.
Implemented token class