initial work on lecture 04