Carnegie SSD4 exercise2