lecture 4 and 5 (the start)