Added Terminal class