finished lecture 1 & variable scope exercise