fixed mistakes in lecture 4, added function tables to lecture 5