update based on lecture 16 happening.