Updating exercise 3-1