finished the first assignment for 517.