Terminal class.