added type class. This class is used to manage the types in relation tuples.