added lecture 3 solution