lecture 5

added tab fuction