added cs145 exercise2