uploaded lecture code for Oct27