update week6 to take advantage of changes in library