Add terminal class