Uploaded lecture 3 code