Update Lecture 3

Added functions to illustrate the many uses of subset