added ASTypes as a class