minor changes ex1, assignment 7