Added a Terminal class