See old lecture 5 and Gene's example
See old lecture 5 and Gene's example