finished lecture 1.b