Notes for lecture 4: Functions and conditionals