exercise in cmsc 170