Implemented token class