Transformed Token module into Token class and completed it. Not tested yet.